 module.exports = function (UC, source, config, ArFor, cache, package) {
     var UserControl = UC;

     var source = config.Source;
     var router = function (req, res, next) {
        var body = req.body;
        var key = req.sessionID;
         var app = UserControl.GetParamet(key, 'Release');
         if (app && app.VerificationCode == body.VerificationCode) {
             new source({
                 "SQL": "UPDATE [user] SET  password=MD5('{password}') ,[Updated_Date]=datetime('now','+8 hour') WHERE id = {id};",
                 "type": "edit"
             }, {
                 id: app.id,
                 password: body.password
             }, function (obj) {
                 res.Json({
                     error: 0
                 });
             });
         } else {
             res.Json({
                 error: 101
             });
         }
     }
     return router;

 }